<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="./../include/stdlib.jspf" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <%@include file="include/meta.jspf" %>
    <title>广告牌详情</title>
    <link rel="stylesheet" href="${root}/static/wechat/css.css">
    <link rel="stylesheet" href="${root}/static/wechat/index.css">
</head>
<body style="background-color: #f6f6f6">
<!--内容部分-->
<div class="content">
    </a><br>
    <table>
        <tr>
            <td>设备编号</td>
            <td>${entity.code}</td>
        </tr>
        <tr>
            <td>所属公司</td>
            <td>${entity.adCompany.name}</td>
        </tr>
        <tr>
            <td>位置</td>
            <td>${entity.city.name}+${entity.district.name}+${entity.street.name}+${entity.location}</td>
        </tr>
        <tr>
            <td>安装方式</td>
            <td>
                <c:if test="${entity.installMethod=='HAND_FIX'}">手动安装</c:if>
                <c:if test="${entity.installMethod=='MACHINE_FIX'}">机械安装</c:if>
            </td>
        </tr>
        <tr>
            <td>安装年代</td>
            <td>
                <c:choose>
                    <c:when test="${entity.installTime == null}">
                        <jsp:useBean id="now" class="java.util.Date"/>
                        <fmt:formatDate value='${now}' type="date" pattern="yyyy-MM-dd"/>
                    </c:when>
                    <c:otherwise>
                        <fmt:formatDate value='${entity.installTime}' type="date" pattern="yyyy-MM-dd"/>
                    </c:otherwise>
                </c:choose>
            </td>
        </tr>
        <tr>
            <td>材质</td>
            <td>
                <c:if test="${entity.material=='PC_BOARD'}">PC板</c:if>
                <c:if test="${entity.material=='KT_BOARD'}">KT板</c:if>
                <c:if test="${entity.material=='PP_BOARD'}">PP板</c:if>
            </td>
        </tr>
        <tr>
            <td>面积</td>
            <td>${entity.area}</td>
        </tr>
        <tr>
            <td>角度修正值</td>
            <td>${entity.angleCorrectedValue}</td>
        </tr>
        <tr>
            <td>状态</td>
            <td>
                <c:if test="${entity.status==true}">正常</c:if>
                <c:if test="${entity.status==false}"><a href="wechat/billboardMalfunction_details?billboardId=${entity.id}">故障</a></c:if>
            </td>
        </tr>
    </table>
</div>
</body>
<%@include file="include/script.jspf" %>
</html>
